<?php 
	include_once 'thuvienham.php';
	include_once 'diemdanh_db.php';

	class diemdanh_bs 
	{
		//------------------Fields [3]------------------
			// #0
		private $MaBuoiHoc = -1;
		public function SetMaBuoiHoc($MaBuoiHoc) { $this->MaBuoiHoc = $MaBuoiHoc; }
		public function GetMaBuoiHoc()           { return $this->MaBuoiHoc;       }
			// #1
		private $MaLopHoc = "";
		public function SetMaLopHoc($MaLopHoc)   { $this->MaLopHoc = $MaLopHoc;   }
		public function GetMaLopHoc()            { return $this->MaLopHoc;        }
			// #2
		private $MaHocVien = "";
		public function SetMaHocVien($MaHocVien) { $this->MaHocVien = $MaHocVien; }
		public function GetMaHocVien()           { return $this->MaHocVien;       }

		//------------------Method------------------
		public function Them()
		{
			$data = new diemdanh_db();
			return $data->Them($this->MaBuoiHoc, $this->MaLopHoc, $this->MaHocVien);
		}

		public function Xoa()
		{
			$data = new diemdanh_db();
			return $data->Xoa($this->MaBuoiHoc);
		}
		public function XoaLopHoc()
		{
			$data = new diemdanh_db();
			return $data->XoaLopHoc($this->MaLopHoc);
		}
		public function XoaHocVien()
		{
			$data = new diemdanh_db();
			return $data->XoaHocVien($this->MaHocVien);
		}

		public function CapNhat()
		{
			$data = new diemdanh_db();
			return $data->CapNhat($this->MaBuoiHoc, $this->MaLopHoc, $this->MaHocVien);
		}

		public function LayDanhSach()
		{
			$data = new diemdanh_db();
			return $data->LayDanhSach($this->MaBuoiHoc, $this->MaLopHoc, $this->MaHocVien);
		}

	}

